package cn.stylefeng.guns.modular.yingbao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 返利
 * </p>
 *
 * @author jj
 * @since 2019-12-16
 */
@TableName("yingbao_sys_rebate")
public class SysRebate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * id
     */
    @TableField("userid")
    private Long userid;

    /**
     * 返利单号
     */
    @TableField("ordinal")
    private String ordinal;

    /**
     * 金额
     */
    @TableField("money")
    private Long money;

    /**
     * 返利类别
     */
    @TableField("rebate_type")
    private Integer rebateType;

    /**
     * 收款凭证
     */
    @TableField("sell_details")
    private String sellDetails;

    /**
     * 支付凭证
     */
    @TableField("pay_details")
    private String payDetails;

    /**
     * 付款时间
     */
    @TableField("pay_time")
    private Date payTime;

    /**
     * 返利时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 购买时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 申诉时间
     */
    @TableField("appeal_time")
    private Date appealTime;

    /**
     * 名称
     */
    @TableField("standby2")
    private String standby2;

    /**
     * 审批备注
     */
    @TableField("standby3")
    private String standby3;

    /**
     * 付款备注
     */
    @TableField("pay_remark")
    private String payRemark;

    /**
     * 申诉备注
     */
    @TableField("appeal_remark")
    private String appealRemark;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(String ordinal) {
        this.ordinal = ordinal;
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    public Integer getRebateType() {
        return rebateType;
    }

    public void setRebateType(Integer rebateType) {
        this.rebateType = rebateType;
    }

    public String getSellDetails() {
        return sellDetails;
    }

    public void setSellDetails(String sellDetails) {
        this.sellDetails = sellDetails;
    }

    public String getPayDetails() {
        return payDetails;
    }

    public void setPayDetails(String payDetails) {
        this.payDetails = payDetails;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getAppealTime() {
        return appealTime;
    }

    public void setAppealTime(Date appealTime) {
        this.appealTime = appealTime;
    }

    public String getStandby2() {
        return standby2;
    }

    public void setStandby2(String standby2) {
        this.standby2 = standby2;
    }

    public String getStandby3() {
        return standby3;
    }

    public void setStandby3(String standby3) {
        this.standby3 = standby3;
    }

    public String getPayRemark() {
        return payRemark;
    }

    public void setPayRemark(String payRemark) {
        this.payRemark = payRemark;
    }

    public String getAppealRemark() {
        return appealRemark;
    }

    public void setAppealRemark(String appealRemark) {
        this.appealRemark = appealRemark;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "SysRebate{" +
        "id=" + id +
        ", userid=" + userid +
        ", ordinal=" + ordinal +
        ", money=" + money +
        ", rebateType=" + rebateType +
        ", sellDetails=" + sellDetails +
        ", payDetails=" + payDetails +
        ", payTime=" + payTime +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", appealTime=" + appealTime +
        ", standby2=" + standby2 +
        ", standby3=" + standby3 +
        ", payRemark=" + payRemark +
        ", appealRemark=" + appealRemark +
        ", version=" + version +
        "}";
    }
}
